﻿using System;

namespace IValidate.WebTester.Models
{
	public class Customer
	{
		private string _firstName;
		[ValidateLength(3, 30, "First name is required and must be at least 3 characters and no more than 30.", true)]
		public string FirstName
		{
			get { return _firstName; }
			set
			{
				_firstName = value;
			}
		}
		private string _lastName;
		[ValidateLength(3, 30, "Last name is required and must be at least 3 characters and no more than 30.", true)]
		public string LastName
		{
			get { return _lastName; }
			set
			{
				_lastName = value;
			}
		}
		private DateTime _birthdate;
		[ValidateDate("Birthdate is required and must be a validate date.", true)]
		public DateTime Birthdate
		{
			get { return _birthdate; }
			set
			{
				_birthdate = value;
			}
		}
		private string _email;
		[ValidateEmailAttribute("A valid email is required.", true)]
		public string Email
		{
			get { return _email; }
			set
			{
				_email = value;
			}
		}
	}
}
